package cn.edu.scau.cmi.xuchuangxiong.simpleFactoryMethod;

import cn.edu.scau.cmi.xuchuangxiong.domain.*;

public class MeatFactory {
	
	public static Meat produce(String option)
	{
		Meat policy = null;
		if(option.compareTo("1") == 0)
			policy = new Pork();
		else if(option.compareTo("2") == 0)
			policy = new Beef();
		else if(option.compareTo("3") == 0)
			policy = new Chicken();
		return policy;
	} 

}
